{* Smarty *}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="{$str.locale}">
<head>
	<title>{$title}</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" href="/css/base.css" media="all" />
</head>
<body>
	<div class="cwrap">
		{include file='base.include.exitbtn.tpl'}
		<h4>{$str.PDA}: {$str.map}</h4>
		<table>
			<tr>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="idle" />
						<input type="submit" value="{$str.close_PDA}" />
					</form>
				</td>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="pda" />
						<input type="hidden" name="d" value="top" />
						<input type="submit" value="{$str.top}" />
					</form>
				</td>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="pda" />
						<input type="hidden" name="d" value="sms" />
						<input type="submit" value="{$str.sms}" />
					</form>
				</td>
				<td>
					<form action="/" method="POST">
						<input type="hidden" name="m" value="pda" />
						<input type="hidden" name="d" value="glossary" />
						<input type="submit" value="{$str.glossary}" />
					</form>
				</td>
			</tr>
		</table>
		<table class="maptbl">
			{section name=dy loop=$cells}
			<tr>
				{section name=dx loop=$cells}
				{if $cells[dx][dy][5]}{if ($smarty.section.dx.index==5 and $smarty.section.dy.index==5)}<td class="space">&bull;{else}<td class="space">&nbsp;{/if}{else}<td class="wall">&nbsp;{/if}</td>
				{/section}
			</tr>
			{/section}
		</table>
	</div>
</body>
